﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SIAD.Model
{
    abstract class MessageSender
    {
        #region Event Definition
        public delegate void MessageEventHandler(object sender, MessageEventArg e);

        public event MessageEventHandler MessageEvent;

        public void sendMessage(String theText)
        {
            MessageEventHandler handler = this.MessageEvent;
            if (handler != null)
            {
                var mea = new MessageEventArg(theText);
                handler(this, mea);
            }
        }
        #endregion
    }
}
